
print('--------------if嵌套-------------')
stuAge = 4
sex = '男生'
if stuAge >= 10:
    print('初中生')
    if sex == '男生':
        print('打篮球')
    elif sex == '女生':
        print('跳绳')
    else:
        print('写作业')
elif 5 <= stuAge < 10:
    print('小学生')
    if sex == '男生':
        print('打篮球')
    elif sex == '女生':
        print('跳绳')
    else:
        print('写作业')
else:
    print('还在幼儿园')
